//
//  RegisterSuccessController.m
//  mangoClient
//
//  Created by dazhou on 16/5/18.
//  Copyright © 2016年 dazhou. All rights reserved.
//

#import "RegisterSuccessController.h"

@interface RegisterSuccessController ()
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UILabel *mLabel1;
@property (weak, nonatomic) IBOutlet UILabel *mLabel2;
@property (weak, nonatomic) IBOutlet UIButton *benginUse;

@end

@implementation RegisterSuccessController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = self.titleStr;
    if ([self.titleStr isEqualToString:@"修改密码成功"]) {
        self.mLabel1.text = @"您已成功修改密码！";
    }
    else {
        self.mLabel1.text = @"您已成功注册！";
    }
    
//    self.view.backgroundColor = ColorString(@"#f0f1f2");
//    self.bgView.backgroundColor = ColorString(@"#ffffff");
//    self.mLabel1.textColor = ColorString(@"#222222");
//    self.mLabel2.textColor = ColorString(@"#909090");
//    self.benginUse.layer.masksToBounds = YES;
//    self.benginUse.layer.cornerRadius = 3;
//    self.benginUse.backgroundColor = ColorString(@"#49ae72");
//    [self.benginUse setTitleColor:ColorString(@"#ffffff") forState:UIControlStateNormal];
}

- (IBAction)onBeginUsePressed:(id)sender {
    
//    NSLog(@"环信登录名: %@",PersonInfoManager.guid);
//    [[EaseMob sharedInstance].chatManager asyncLoginWithUsername:PersonInfoManager.guid password:@"123456" completion:^(NSDictionary *loginInfo, EMError *error) {
//        if (!error && loginInfo) {
//            NSLog(@"环信登录成功");
//            // 设置消息显示类型
//            EMPushNotificationOptions *options = [[EaseMob sharedInstance].chatManager pushNotificationOptions];
//            options.displayStyle = ePushNotificationDisplayStyle_messageSummary;
//            if (PersonInfoManager.name && PersonInfoManager.name.length > 0) {
//                options.nickname = PersonInfoManager.name;
//            } else {
//                options.nickname = PersonInfoManager.guid;
//            }
//            [[EaseMob sharedInstance].chatManager asyncUpdatePushOptions:options];
//            //设置推送设置
//            [[EaseMob sharedInstance].chatManager setApnsNickname:options.nickname];
//            
//        } else {
//            NSLog(@"环信登录失败:%@",error.description);
//        }
//    } onQueue:nil];
//    
//     [[LoginManager Instance] showMainView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
